package org.yang.snake.model;

import java.util.Date;
import java.io.Serializable;

import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 字典(SysDict)实体类
 *
 * @author shichenyang
 * @since 2019-08-21 11:05:16
 */
@Data
public class SysDict implements Serializable {
    private static final long serialVersionUID = 755945823792003557L;
    /**
     * id
     */
    private Long id;
    /**
     * 编号
     */
    private String code;
    /**
     * 字典名称
     */
    private String name;
    /**
     * 字典value
     */
    private String value;
    /**
     * 排序
     */
    private Integer order;
    /**
     * 上级id
     */
    private Long parentId;
    /**
     * 状态 1:可用 -1:关闭
     */
    private Integer state;
    /**
     * 创建时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    /**
     * 修改时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
}